<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="shortcut icon" href="{$ROOT}/img/favicon.ico" type="image/x-icon" />
    <title>{$TITLE}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="{$ROOT}/widget/layui/css/layui.css">
    <link rel="stylesheet" href="{$ROOT}/css/phone.css">
    <script language="JavaScript">
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
            var r = window.location.search.substr(1).match(reg);
            if (r!=null) return (r[2]); return null;
        }
    </script>
</head>
<style>
    html{  height:100%;}
    body{  height:100%; margin:0;background-color:#ebebeb}
    .warn{color:red}
</style>
<body>
<script src="{$ROOT}/widget/layui/layui.js"></script>
<div id="container">
    <ul class="layui-nav layui-bg-blue">
       <!-- <li class="layui-nav-item" id="index"><a href="{$ROOT}/phone/index/index"><i class="layui-icon">&#xe68e;</i>首页</a></li>-->
        <li class="layui-nav-item" id="expert"><a href="{$ROOT}/phone/index/index"><i class="layui-icon">&#xe63c;</i>评价</a></li>
        <li class="layui-nav-item" id="query"><a href="{$ROOT}/phone/index/result"><i class="layui-icon">&#xe615;</i>查询</a></li>
        <li class="layui-nav-item" id="security">
            <a href="javascript:;"><i class="layui-icon">&#xe612;</i>安全</a>
            <dl class="layui-nav-child">
                <dd><a href="{$ROOT}/phone/index/change" id="password">修改密码</a></dd>
                <dd><a href="#" id="exit">注销</a></dd>
            </dl>
        </li>
    </ul>
    {__CONTENT__}
</div>
<script>
    var all=0;
    //注意：导航 依赖 element 模块，否则无法进行功能性操作
    layui.use(['jquery','element','table','layer'], function(){
        var element = layui.element;
        var table = layui.table;
        var $=layui.$;
        var layer = layui.layer;
        $("#exit").click(function () {
            layer.confirm('确定退出么？', function(index){
                location.href = '{$ROOT}/home/login/logout';
                layer.close(index);
                //向服务端发送删除指令
            });
        });
    });

</script>
</body>
</html>